<?php 
/**
 * Set site wide globals
 *
 * This is called by the theme "fucntions.php" first
 *
 */

// Define Globals
define('ns_theme_name', "Amawal");
define('ns_theme_slug', "amawal"); 
define(ns_text_domaine, "amawal");
define('theme_icon', ns_theme_path . '/favicon.ico');

// Custom pages template
function ns_get_custom_pages(){
$custom_pages = array ( 
	array(
		'post_title' => 'Contact Amawal',
		'post_name' => 'contact',
		'_wp_page_template' => 'contact.php'  
	),
	array(
		'post_title' => 'Donate to Amawal project',
		'post_name' => 'donate',
		'_wp_page_template' => 'donate.php'  
	),
	array(
		'post_title' => 'My account',
		'post_name' => 'my_account',
		'_wp_page_template' => 'my_account.php'  
	),
	array(
		'post_title' => 'Add a new word',
		'post_name' => 'add_new',
		'_wp_page_template' => 'add_new.php'  
	),
	array(
		'post_title' => 'Amawal login',
		'post_name' => 'login',
		'_wp_page_template' => 'login.php'  
	),
	array(
		'post_title' => 'Amawal profile',
		'post_name' => 'profile',
		'_wp_page_template' => 'profile.php'  
	),
	array(
		'post_title' => 'About Amawal',
		'post_name' => 'about',
		'_wp_page_template' => 'about.php'  
	)
);
return $custom_pages;
}

if ( ! function_exists( 'generate_categories' ) ):
/**
 * Generate categories
 *
 * @since Twenty Eleven 1.0
 */
function generate_categories() {
	 
	$categories = array ( 
		array( 'Blog' )
	);
	return $categories;
}
endif;

if ( ! function_exists( 'generate_alphabet' ) ):
/**
 * Generate alphabet array
 *
 * @since Twenty Eleven 1.0
 */
function generate_alphabet() {
	 
	$alphabet = array ( 
		array( 'a', 'ⴰ' ),
		array( 'b', 'ⴱ' ),
		array( 'g', 'ⴳ' ),
		array( 'gw', 'ⴳⵯ' ),
		array( 'd', 'ⴷ' ),
		array( 'ḍ', 'ⴹ' ),
		array( 'e', 'ⴻ' ),
		array( 'f', 'ⴼ' ),
		array( 'k', 'ⴽ' ),
		array( 'kw', 'ⴽⵯ' ),
		array( 'h', 'ⵀ' ),
		array( 'ḥ', 'ⵃ' ),
		array( 'ɛ', 'ⵄ' ),
		array( 'x', 'ⵅ' ),
		array( 'q', 'ⵇ' ),
		array( 'i', 'ⵉ' ),
		array( 'j', 'ⵊ' ),
		array( 'l', 'ⵍ' ),
		array( 'm', 'ⵎ' ),
		array( 'n', 'ⵏ' ),
		array( 'u', 'ⵓ' ),
		array( 'r', 'ⵔ' ),
		array( 'ṛ', 'ⵕ' ),
		array( 'ɣ', 'ⵖ' ),
		array( 's', 'ⵙ' ),
		array( 'ṣ', 'ⵚ' ), // &#7778;
		array( 'c', 'ⵛ' ),
		array( 't', 'ⵜ' ),
		array( 'ṭ', 'ⵟ' ), // &#7788;
		array( 'w', 'ⵡ' ),
		array( 'Y', 'ⵢ' ),
		array( 'z', 'ⵣ' ),
		array( 'ẓ', 'ⵥ' ) // &#7826;
	);
	return $alphabet;
}
endif;


// SET DEFAULT SITE OPTIONS
$install_default_values = array ( 
	array(
		'name' => 'permalink_structure',
		'value' => '/%postname%/'  
	),
	array(
		'name' => 'category_base',
		'value' => 'entry'  
	)
);


// SET DEFAULT SITE OPTIONS
$meta_word_region_array = array ( 
	array(
		'name' => 'cnu',
		'value' => 'Hachenwit'  
	),
	array(
			'name' => 'shy',
			'value' => 'Tacawit'  
		),
	array(
			'name' => 'shi',
			'value' => 'Tachelhit'  
		),
	array(
			'name' => 'tmh',
			'value' => 'Tamasheq'  
		),
	array(
			'name' => 'tzm',
			'value' => 'Tamazight Atlas'  
		),
	array(
			'name' => 'kab',
			'value' => 'Taqbaylit'  
		),
	array(
			'name' => 'rif',
			'value' => 'Tarifit'  
		),
	array(
			'name' => 'mzb',
			'value' => 'Tumzabt'  
		),
	array(
			'name' => 'zen',
			'value' => 'Znaga '  
		), 
	-1 => array(
			'name' => 'null',
			'value' => 'Undefined '  
		)
);
	
	
// DEFINE THEME SUPPORTED FEATURES
add_post_type_support( 'page', 'excerpt' );
add_theme_support( 'post-thumbnails' );

// remove admin bar
add_filter( 'show_admin_bar', '__return_false' );

?>